<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:replace="common/top">

    </div>
    <div id="Content">
        <div id="Catalog" >
            <h2>我的订单</h2>

            <table>
                <tr>
                    <th>订单编号</th>
                    <th>下单日期</th>
                    <th>总价</th>
                </tr>


                <tr th:each="order:${session.list}">
                    <td>
                        <a th:href="@{viewOrder?orderId=${order.orderId}}" th:text="${order.orderId}"></a>
                    </td>

                    <td th:text="${order.orderDate}"></td>
                    <td th:text="${order.totalPrice}"></td>
                </tr>

            </table>
        </div>
        <br>
        <br>
    </div>
    <div th:replace="common/bottom">

    </div>
</body>
</html>